package com.njit.farm.dataobject;

import com.njit.farm.model.Integral;

import java.util.Date;

public class FIntegral {
    private String iId;

    private Date iTime;

    private Integer iChange;

    private String iRemark;

    private String uId;

    public String getiId() {
        return iId;
    }

    public void setiId(String iId) {
        this.iId = iId;
    }

    public Date getiTime() {
        return iTime;
    }

    public void setiTime(Date iTime) {
        this.iTime = iTime;
    }

    public Integer getiChange() {
        return iChange;
    }

    public void setiChange(Integer iChange) {
        this.iChange = iChange;
    }

    public String getiRemark() {
        return iRemark;
    }

    public void setiRemark(String iRemark) {
        this.iRemark = iRemark;
    }

    public String getuId() {
        return uId;
    }

    public void setuId(String uId) {
        this.uId = uId;
    }

    public Integral toModel(){

        Integral integral = new Integral();
        integral.setId(this.iId);
        integral.setChange(this.iChange);
        integral.setRemark(this.iRemark);
        integral.setTime(this.iTime);
        integral.setuId(this.uId);

        return integral;
    }
}